package Dungeoneering.PathFinding;

import java.awt.Point;

import Dungeoneering.Entities.Room.Direction;

/**
 * A pathnode is one node of a path from one room to another. It contains a Room, and a direction of the door we have to open to go to the next room
 * @author Nicolaas
 *
 */
public class PathNode { // package protected
	
	private Direction direction;
	private Point mapCoords;
	
	public PathNode(Point mapCoords) {
		this.mapCoords = mapCoords;
	}
	
	public boolean isEndNode() {
		return direction == null;
	}
	
	public Point getCoords() {
		return mapCoords;
	}
	
	public void setDirectionToNextNode(Direction dir) {
		this.direction = dir;
	}
	
	public Direction getDirectionToNextNode() {
		return direction;
	}

}
